var strGetQuery = document.location.search;
var userid = cw.common.getQueryString(strGetQuery,'id');
$(document).ready(function(){
	cw.common.setStyle();
	cw.common.getUserSession(getUserInfo,true);
	
})

function getUserInfo(userinfo){
	var url = cw.common.path + '/json?action=GET_T_SYS_USER_ACTION&USER_ID='+userid;
	$.post(url,{},function(data){
		if(data.success){
			var vobj=data.root.T_SYS_USER;
			if(vobj==null||vobj==''||vobj==undefined){
				alert("该用户不存在或已被删除");
				return;
			}
			else{
				var obj = data.root.T_SYS_USER.rs[0];
				cw.common.getValue('LOGIN_NAME',obj.LOGIN_NAME,'无');
				cw.common.getValue('USER_NAME',obj.USER_NAME,'无');
				cw.common.getValue('PHONE',obj.PHONE,'无');
				cw.common.getValue('EMAIL',obj.EMAIL,'无');
				cw.common.getValue('REMARK',obj.REMARK,'无');
			}
		}
		else{
			alert(data.errors.errmsg);
		}
	},'json');
}
